.class public Lcom/philzhu/www/ddz/HelpScreen;
.super Lcom/philzhu/www/framework/Screen;
.source "HelpScreen.java"


# direct methods
.method public constructor <init>(Lcom/philzhu/www/framework/Game;)V
    .locals 1
    .parameter "game"

    .prologue
    .line 15
    invoke-direct {p0, p1}, Lcom/philzhu/www/framework/Screen;-><init>(Lcom/philzhu/www/framework/Game;)V

    .line 16
    const/4 v0, 0x3

    iput v0, p0, Lcom/philzhu/www/ddz/HelpScreen;->screenType:I

    .line 17
    return-void
.end method


# virtual methods
.method public dispose()V
    .locals 0

    .prologue
    .line 61
    return-void
.end method

.method public pause()V
    .locals 0

    .prologue
    .line 51
    return-void
.end method

.method public present(F)V
    .locals 7
    .parameter "deltaTime"

    .prologue
    const/4 v2, 0x0

    .line 37
    iget-object v3, p0, Lcom/philzhu/www/ddz/HelpScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v0

    .line 38
    .local v0, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v3, Lcom/philzhu/www/ddz/Assets;->backgroundGame:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v3, v2, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 39
    sget-object v3, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    const/16 v4, 0x320

    sget-object v5, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v5}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v5

    sub-int/2addr v4, v5

    div-int/lit8 v4, v4, 0x2

    invoke-interface {v0, v3, v4, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 41
    iget-object v3, p0, Lcom/philzhu/www/ddz/HelpScreen;->game:Lcom/philzhu/www/framework/Game;

    check-cast v3, Landroid/content/Context;

    const v4, 0x7f04004f

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 42
    .local v6, title:Ljava/lang/String;
    iget-object p0, p0, Lcom/philzhu/www/ddz/HelpScreen;->game:Lcom/philzhu/www/framework/Game;

    .end local p0
    check-cast p0, Landroid/content/Context;

    const v3, 0x7f040050

    invoke-virtual {p0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 44
    .local v1, info:Ljava/lang/String;
    invoke-interface {v0, v6}, Lcom/philzhu/www/framework/Graphics;->drawHelpTitle(Ljava/lang/String;)V

    .line 45
    sget-object v3, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v3}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v3

    add-int/lit8 v3, v3, 0x28

    const/16 v4, 0x30c

    const/16 v5, 0x17c

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawHelpInfo(Ljava/lang/String;IIII)V

    .line 46
    return-void
.end method

.method public resume()V
    .locals 0

    .prologue
    .line 56
    return-void
.end method

.method public update(F)V
    .locals 6
    .parameter "deltaTime"

    .prologue
    .line 21
    iget-object v4, p0, Lcom/philzhu/www/ddz/HelpScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v4}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v4

    invoke-interface {v4}, Lcom/philzhu/www/framework/Input;->getTouchEvents()Ljava/util/List;

    move-result-object v3

    .line 22
    .local v3, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    iget-object v4, p0, Lcom/philzhu/www/ddz/HelpScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v4}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v4

    invoke-interface {v4}, Lcom/philzhu/www/framework/Input;->getKeyEvents()Ljava/util/List;

    .line 24
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v2

    .line 25
    .local v2, len:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-lt v1, v2, :cond_0

    .line 33
    return-void

    .line 26
    :cond_0
    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 27
    .local v0, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    iget v4, v0, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v5, 0x1

    if-ne v4, v5, :cond_1

    .line 28
    iget v4, v0, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    const/16 v5, 0x100

    if-le v4, v5, :cond_1

    iget v4, v0, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    .line 25
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method
